
//-----------------------------Begin
import * as vueRouter from "vue-router";
const routes = [
  {
    path: '/',
    redirect: '/index'

  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../components/HelloWorld.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/about.vue')
  }
];

const router = vueRouter.createRouter({
  history: vueRouter.createWebHashHistory(),//history模式不带# [createWebHistory]，hash带# [createWebHashHistory()]
  routes: routes
});
export default router;

//-----------------------------End